<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%@ include file="../include/include.jsp"%>
<title>【${result.registerYear}年${result.registerMonth}月${result.brand}${result.model}收购价格评估结果】_麦麦车二手车网络超市</title>
<meta name="description" content="${result.registerYear}年${result.registerMonth}月${result.brand}${result.model}能卖多少钱?二手${result.brand}${result.model}值多少钱?" />
<meta name="Keywords" content="${result.registerYear}年${result.brand}${result.model}多少钱" />
<link rel="stylesheet" type="text/css" href="${cssPath}/resources/css/assess.css">
<link rel="stylesheet" href="${cssPath}/resources/js/validationEngine/css/validationEngine.jquery.css" type="text/css"/>
<link rel="stylesheet" href="${cssPath}/resources/js/validationEngine/css/template.css" type="text/css"/>
</head>
<body>
	<%@ include file="../include/head.jsp"%>
	<!--#cnt 中间的内容-->
	<div id="cnt">
		<div class="cnt-wrap">
			<!--path-wrap 面包屑-->
			<div class="path-wrap">
				<div class="path">
					<span>当前位置：</span>
					<a href="#">二手车网络超市</a>
					<span>&gt;</span>
					<a href="${contextPath}/pinggu.html">估价宝</a>
					<span>&gt;</span>
					<span>评估结果</span>
				</div>
			</div>
			<!--path-wrap end-->
			<div class="result-wrap">
				<div class="assess-img f-fl">
					<img src="${contextPath}/resources/images/assess-img.png" width="237px" height="317px" alt="专业车价评估" title="专业车价评估" />
				</div>
				<c:if test="${not empty result}">
				<div class="f-fl assess-result">
					 <h2 class="pro-name text-ellipsis">
					 	${result.brand}${result.model} ${result.displacement} ${result.transmission == 'MT' ? '手动档' : '自动档' }
					</h2>
					<div class="pro-info-wrap">
						<div class="f-fl">
							<span>
								首次上牌日期：
							</span>
							<span class="pro-info">
								${result.registerYear}年${result.registerMonth}月
							</span>
						</div>
						<div class="f-fl">
							<span>
								表显行驶里程：
							</span>
							<span class="pro-info">
								${result.mileage }万公里
							</span>
						</div>
						<div class="f-clear"></div>
					</div>
					<div class="result">
						<h2 class="result-title">
							通过专业估价算法分析成交数据后，得出以下结果：
						</h2>
						<div class="assess-price">
							<h2 class="f-fl">
								预计出售成交价：
							</h2>
							<span class="color-red f-fl">
								<span class="fs-24">￥${result.mmchePrice }</span>万
							</span>
							<div class="f-clear"></div>
						</div>
						<div class="consult-price">
							<h2>
								具体版型参考成交价：
							</h2>
							<c:forEach var="item" items="${result.modelPrice}" varStatus = "status">
							<div class="consult-item">
								<c:choose>
								<c:when test="${status.last}">
									<span class="f-fl">
										${item.model}：<span class="color-red">${item.price }万元</span>
									</span>
									<a href="${contextPath}/sellcar.html" class="f-fr">我要卖车>></a>
									<div class="f-clear"></div>
								</c:when>
								<c:otherwise>
									${item.model}：<span class="color-red">${item.price }万元</span>
								</c:otherwise> 
								</c:choose>
							</div>
							</c:forEach>
						</div>
					</div>
					<div class="radio-wrap">
						你觉得评估价格：
						<span class="radio-item">
							<span class="mmche-icon radio f-ib"></span>合适<!--选中项添加class="radio-checked"-->
						</span>
						<span class="radio-item">
							<span class="mmche-icon radio f-ib"></span>偏低
						</span>
						<span class="radio-item">
							<span class="mmche-icon radio f-ib"></span>偏高
						</span>
					</div>
					<div class="pmt">
						以上报价是基于该车在正常保养情况下的车况进行评估，该车况可能与您的实际情况有所偏差，估价仅供参考。
					</div>
					<!--分享按钮 来自百度分享-->
					<div class="bdsharebuttonbox f-fr"><a href="#" class="bds_more" data-cmd="more">&nbsp;分享到：</a><a href="#" class="bds_qzone" data-cmd="qzone"></a><a href="#" class="bds_tsina" data-cmd="tsina"></a><a href="#" class="bds_tqq" data-cmd="tqq"></a><a href="#" class="bds_renren" data-cmd="renren"></a><a href="#" class="bds_weixin" data-cmd="weixin"></a></div>
					<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdPic":"","bdStyle":"0","bdSize":"16"},"share":{},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到：","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
					<!--分享按钮 end-->
				</div>
				</c:if>
				<c:if test="${empty result}">
				<div class="f-fl no-assess-result">
					<p>对不起,暂时没有这款车的估价信息,您可以拨打400-8828-557或13906000288寻找人工技术支持,麦麦车将竭诚为您服务！</p>
				</div>
				</c:if>
				<form class="assess-fm f-fl" id="evaluateForm" action="${contextPath}/pinggu/save.html" method="post">
					<input type="hidden" name="token" value="${token}">
					<input type="hidden" name="brand" id="brand" value="${result.brand}">
					<input type="hidden" name="model" id="model">
					<ul>
						<li>
							<span class="f-fl fm-label"><span class="red-star">*</span>品牌：</span>
							<select class="fm-select validate[required]" name="brandId" id="evaluateBrand">
								<option>
									请选择品牌
								</option>
							</select>
							<div class="f-clear"></div>
						</li>
						<li>
							<span class="f-fl fm-label"><span class="red-star">*</span>车系：</span>
							<select class="fm-select validate[required]" name="modelsId" id="evaluateSeries" val="${result.modelId }">
								<option>
									请选择车系
								</option>
							</select>
							<div class="f-clear"></div>
						</li>
						<li>
							<span class="f-fl fm-label"><span class="red-star">*</span>排量：</span>
							<select class="fm-select validate[required]" name="displacement" id="evaluateDisplacement" val="${result.displacement }">
								<option>
									请选择排量
								</option>
							</select>
							<div class="f-clear"></div>
						</li>
						<li>
							<span class="f-fl fm-label"><span class="red-star">*</span>变速箱：</span>
							<input class="fm-radio" type="radio" value="AT" name="transmission" ${result.transmission=='AT' ? 'checked' : ''}><span class="fm-label2">自动</span><input class=" fm-radio" type="radio" value="MT" ${result.transmission=='MT' ? 'checked' : ''} name="transmission"><span>手动</span>
							<div class="f-clear"></div>
						</li>
						<li>
							<span class="f-fl fm-label"><span class="red-star">*</span>行驶里程：</span>
							<input type="text" name="mileage" value="${result.mileage}" class="fm-text validate[required,custom[number],min[0],max[50]]"" /><span>万公里</span>
						</li>
						<li>
							<span class="f-fl fm-label"><span class="red-star">*</span>上牌日期：</span>
							<select class="fm-select fm-select-y validate[required]" name="registerYear">
								<option value="">选择</option>
								<c:forEach var="year" items="${years}">
									<option value="${year}" ${year == result.registerYear ? 'selected' : ''}>${year}</option>
								</c:forEach>
							</select><span>年</span>
							<select class="fm-select fm-select-m validate[required]" name="registerMonth">
								<c:forEach var="month" begin="1" end="12" step="1">
			                	<fmt:formatNumber var="month" value="${month}" pattern="00"/> 
			                	<option value="${month}" ${month == result.registerMonth ? 'selected' : ''}>${month}</option>
				                </c:forEach>
							</select><span>月</span>
							<div class="f-clear"></div>
						</li>
					</ul>
					<input type="submit" class="mmche-btn fm-submit" value="再估一次" />
				</form>
				<div class="f-clear"></div>
			</div>
			<!--assess-cnt-wrap 近期行情-->
			<div class="assess-cnt-wrap">
				<h1 class="assess-cnt-hd mmche-icon">
					近期行情
				</h1>
				<ul class="pro-list">
					<li>
						<div class="pro-img-wrap f-fl">
							<div class="pro-img v-h-center">
								<a href="#">
									<img src="${contextPath}/resources/images/brand-img.png" title="brand-img" alt="brand-img" />
								</a>
							</div>
						</div>
						<div class="pro-info f-fr">
							<p class="pro-name">
								<a href="#">
									2011年1月 大众宝来 1.6L 手动档
								</a>
							</p>
							<div class="pro-price">
								<div>评估价：</div>
								<div class="price">6.61万-7.19万</div>
							</div>
						</div>
						<div class="f-clear"></div>
					</li>
					<li>
						<div class="pro-img-wrap f-fl">
							<div class="pro-img v-h-center">
								<a href="#">
									<img src="${contextPath}/resources/images/brand-img.png" title="brand-img" alt="brand-img" />
								</a>
							</div>
						</div>
						<div class="pro-info f-fr">
							<p class="pro-name">
								<a href="#">
									2011年1月 大众宝来 1.6L 手动档
								</a>
							</p>
							<div class="pro-price">
								<div>评估价：</div>
								<div class="price">6.61万-7.19万</div>
							</div>
						</div>
						<div class="f-clear"></div>
					</li>
					<li>
						<div class="pro-img-wrap f-fl">
							<div class="pro-img v-h-center">
								<a href="#">
									<img src="${contextPath}/resources/images/brand-img.png" title="brand-img" alt="brand-img" />
								</a>
							</div>
						</div>
						<div class="pro-info f-fr">
							<p class="pro-name">
								<a href="#">
									2011年1月 大众宝来 1.6L 手动档
								</a>
							</p>
							<div class="pro-price">
								<div>评估价：</div>
								<div class="price">6.61万-7.19万</div>
							</div>
						</div>
						<div class="f-clear"></div>
					</li>
					<li class="border-none">
						<div class="pro-img-wrap f-fl">
							<div class="pro-img v-h-center">
								<a href="#">
									<img src="${contextPath}/resources/images/brand-img.png" title="brand-img" alt="brand-img" />
								</a>
							</div>
						</div>
						<div class="pro-info f-fr">
							<p class="pro-name">
								<a href="#">
									2011年1月 大众宝来 1.6L 手动档
								</a>
							</p>
							<div class="pro-price">
								<div>评估价：</div>
								<div class="price">6.61万-7.19万</div>
							</div>
						</div>
						<div class="f-clear"></div>
					</li>
				</ul>
			</div>
			<!--assess-cnt-wrap end-->
		</div>
	</div>
	<!--#cnt end-->
	<%@ include file="../include/foot.jsp"%>
	<script type="text/javascript" src="${jsPath}/resources/js/evaluate.js"></script>
	<script type="text/javascript" src="${jsPath}/resources/js/jquery/jquery-slide.js"></script>
	<script src="${jsPath}/resources/js/validationEngine/js/jquery.validationEngine.js" type="text/javascript"></script>
	<script src="${jsPath}/resources/js/validationEngine/js/languages/jquery.validationEngine-zh_CN.js" type="text/javascript"></script>	<script>
	$(document).ready(function(){
		$("#evaluateForm").validationEngine({
			promptPosition: "bottomRight:0,-5"
		});
	});
	</script>
</body>
</html>